package com.honey.chat.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;

import com.honey.chat.entity.User;
import com.honey.chat.im.HoneyChat;

/**
 * 
 * @author honey
 * @version 创建时间：2020年12月6日 下午3:36:25
 */
@Controller
public class IndexController {

	@GetMapping({"","/"})
	public String honeychat(ModelMap mmap) {
		User user = new User();
		user.setUserId(HoneyChat.userId);
		user.setLoginName("honey"+user.getUserId());
		user.setAvatar("/img/1.png");
		mmap.put("user", user);
		return "honeychat";
	}
	
	@GetMapping("/join")
	public String join() {
		return "join";
	}
	
}
